<template>
	<view class="inform">
		<headertop title="活动详情" str1="oridei" :back1="back1"></headertop>
		<u-parse :content="content"></u-parse>
	</view>
</template>

<script>
	import headertop from '@/components/header.vue'
	import {
		activedetail
	} from '@/common/api/api.js'
	export default {
		components: {
			headertop
		},
		data() {
			return {
				back1: 0,
				content: ''
			}
		},
		onLoad(opt) {
			this.init(opt.id)
		},
		onPageScroll(e) {
			console.log(e, 'eeeeeeeeeeeeeee');
			if (e.scrollTop > 100) {
				this.back1 = '#A2AEFF'
			} else {
				this.back1 = ''
			}
		},
		methods: {
			async init(id) {
				const res = await activedetail({
					id
				})
				if (res.code == 1) {
					this.content = res.data.content
				}
			},
			gopage() {
				uni.navigateTo({
					url: '/pages/my/yijianfankuicreated'
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: #F7F8FA;
	}

	.inform {
		width: 100%;
		overflow: hidden;
		position: relative;

		.pageimg {
			width: 100%;
			height: 2644rpx;
		}

	}
</style>